/**
 * @author hoang.pt
 * @version $Id$
 */

package homework.homework5.problem1;

import java.util.ArrayList;

/**
 * Controller/view
 * @author hoang.pt
 */
public class P1VipComputer {

	/**
	 * constructor
	 */
	public P1VipComputer() {
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		//collection
		ArrayList<VipComputer> vipList = new ArrayList<VipComputer>(1);
		
		//read from database or read from file: xml, computer.db
		VipComputer v1 = new VipComputer(1, "hoang.pt", "HP", new Double(200), "gold", "mr Hoang");
		VipComputer v2 = new VipComputer(2, "thien.nd", "Compag", new Double(300), "diamond", "Mr Viet");	
		
		//add to collection
		vipList.add(v1);
		vipList.add(v2);
		
		//get from
		for (VipComputer v : vipList) {
			System.out.println(v);
		}
		
	}

}
